<!-- 2.组件通信->父子传参-->
<script setup lang="ts">;
import { ref } from 'vue';
// 导入组件
import SomCom from './components/SomCom.vue';
const text = ref('我是标题');
const age = ref(18);
</script>

<template>
  <h2>我是父组件</h2>
  <SomCom :text="text" :age="age"></SomCom>
  <SomCom></SomCom>

</template>
<style scoped></style>
